const { appId } = require('../../config/index.js');
const uniPush = uniCloud.getPushManager({ appId });
module.exports = async function(options = {}) {
	const { groupItem } = options;
	return await uniPush.sendMessage({
		"user_id": groupItem.uid,
		"payload": {
			type: "GROUP_APPLY",
			groupCode: groupItem.groupCode
		}
	})
}